<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %> 

<%String path = request.getContextPath();%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
    <link href="<%=path %>/css/index.css" type="text/css" rel="stylesheet" />
    <link href="<%=path %>/css/base.css" type="text/css" rel="stylesheet" />
    
    <style type="text/css">
		.c1-bline{border-bottom:#999 1px dashed;border-top:1px;}
		.f-right{float:right}
		.f-left{float:left}
		.clear{clear:both}
	</style>
	

    <script type="text/javascript">
        function liuyanbanAdd()
        {
            <c:if test="${sessionScope.userType!=1}">
                  alert("请先登录");
            </c:if>
            <c:if test="${sessionScope.userType==1}"> 
                 var strUrl = "<%=path %>/qiantai/liuyanban/liuyanbanAdd.jsp";
	             var ret = window.showModalDialog(strUrl,"","dialogWidth:800px; dialogHeight:500px; dialogLeft: status:no; directories:yes;scrollbars:yes;Resizable=no;");
	             window.location.reload();
            </c:if>
        }
        
        function liuyanbanDetail(id)
        {
             var strUrl = "<%=path %>/liuyanbanDetail.action?id="+id;
             var ret = window.showModalDialog(strUrl,"","dialogWidth:800px; dialogHeight:400px; dialogLeft: status:no; directories:yes;scrollbars:yes;Resizable=no;");
        }
	</script>
	
	
</head>
  
<body>
	<div class="banner">
        <jsp:include flush="true" page="/qiantai/top.jsp"></jsp:include>
	</div>


    <div class="main01" style="margin-top: 10px;">
    	<!-- <h2>
            <span style="font-size: 18px;font-weight:900 ">留言板</span>
            <div class="right" style="font-size: 14px;">dd</div>
        </h2> -->
        <div class="goods">
        	  <c:forEach items="${requestScope.liuyanbanList}" var="liuyanban" varStatus="sta">
								           <div class="c1-bline" style="padding:11px 0px;">
						                        <div class="f-left">
						                             &nbsp;<img src="<%=path %>/img/head-mark4.gif" align="middle" class="img-vm" border="0"/> 
						                             ${liuyanban.neirong }&nbsp;&nbsp;&nbsp;&nbsp;
						                        </div>
									            <div class="f-right">${liuyanban.liuyanshi }&nbsp;&nbsp;&nbsp;</div>
									            <div class="clear11">
									                                                回复信息：${liuyanban.huifu }<br>回复时间：${liuyanban.huifushi }
									            </div>
								            </div>             
								        </c:forEach>
								        <center><a href="#" onclick="liuyanbanAdd()">我要留言咨询</a></center>    
        </div>
    </div>
    
    
    <br/>
    <div class="bottom" style="position:absolute;bottom:0px;">
        <jsp:include flush="true" page="/qiantai/down.jsp"></jsp:include>
    </div>
</body>
</html>
